import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'

//实时代收代付业务应答查询
export const apiUrlConfigQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/realtimeService/realtimeCollectionPaymentServiceReplyQuery/search`,
}



// 实时代收代付业务应答查询明细
export function realtimeCollectionPaymentServiceReplyQueryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/realtimeService/realtimeCollectionPaymentServiceReplyQuery/detail`,
    method: 'get',
    params:{id:data.id}

  })
}

// 实时代收代付业务应答查询原交易明细
export function realtimeCollectionPaymentServiceReplyQueryDetailOri(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/realtimeService/realtimeCollectionPaymentServiceReplyQuery/detailOri`,
    method: 'get',
    params:{oriId:data.oriId,drct:data.drct}

  })
}



//实时代收代付业务应答录入查询
export const apiUrlConfigEntry = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/realtimeService/RealtimeCollectionPaymentServiceReplyEntry/search`,
}


// 实时代收代付业务应答录入查询明细
export function realtimeCollectionPaymentServiceReplyEntryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/realtimeService/RealtimeCollectionPaymentServiceReplyEntry/detail`,
    method: 'get',
    params:{id:data.id}
  })
}

// 实时代收代付业务应答录入提交
export function realtimeCollectionPaymentServiceReplyEntrySave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/realtimeService/RealtimeCollectionPaymentServiceReplyEntry/save`,
    method: 'post',
    data:data
  })
}



